<?php 
//$template;$color;$image;$repeat;$link;$content;$show set from shortcode
$show_image = false;
$style = "";
if($color!=""){
    $style .= "background-color:{$color};";
}
if($image!=""){
    $show_image = true;
    $style .= "background-size:cover;";
    $image_html = "<img src='{$image}' class='pointer' alt='bgImage'/>";
}
?>

<div class="info" style="<?php echo $style;?>">
    <?php echo $image_html;?>
    
    <ul>
        <li class="box_description"><?php echo $content;?></li>
        <?php
        global $wp_query;
        $temp = $wp_query;  // re-sets query
        $args = array(
            'post_type' => array('bazar'),
            //'orderby' => 'date',
            //'order' => 'DESC',
            //'posts_per_page' => $show,
        );
        $custom_query = new WP_Query($args);
        while ($custom_query->have_posts()) : $custom_query->the_post();
            echo '<li><a href="' . get_permalink() . '">'."&nbsp;#&nbsp;" . get_the_title() . '</a></li>';
        endwhile;
        $wp_query = $temp;  // re-sets query
        wp_reset_query();
        ?>
        <li class="last"><a href="<?php echo $link; ?>" class="more">More..</a></li>
    </ul>
</div>